using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 租户
///</summary>
[SugarTable("ad_tenant")]
public class AdTenantEntity : EntityFull
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 企业名称
    ///</summary>
    [SugarColumn(ColumnName = "Name")]
    public string? Name { get; set; }
    
    /// <summary>
    /// 编码
    ///</summary>
    [SugarColumn(ColumnName = "Code")]
    public string? Code { get; set; }
    
    /// <summary>
    /// 姓名
    ///</summary>
    [SugarColumn(ColumnName = "RealName")]
    public string? RealName { get; set; }
    
    /// <summary>
    /// 手机号码
    ///</summary>
    [SugarColumn(ColumnName = "Phone")]
    public string? Phone { get; set; }
    
    /// <summary>
    /// 邮箱地址
    ///</summary>
    [SugarColumn(ColumnName = "Email")]
    public string? Email { get; set; }
    
    /// <summary>
    /// 授权用户
    ///</summary>
    [SugarColumn(ColumnName = "UserId")]
    public long? UserId { get; set; }
    
    /// <summary>
    /// 授权角色
    ///</summary>
    [SugarColumn(ColumnName = "RoleId")]
    public long? RoleId { get; set; }
    
    /// <summary>
    /// 租户类型
    ///</summary>
    [SugarColumn(ColumnName = "TenantType")]
    public string? TenantType { get; set; }
    
    /// <summary>
    /// 数据隔离类型
    ///</summary>
    [SugarColumn(ColumnName = "DataIsolationType")]
    public string DataIsolationType { get; set; }
    
    /// <summary>
    /// 数据库
    ///</summary>
    [SugarColumn(ColumnName = "DbType")]
    public int DbType { get; set; }
    
    /// <summary>
    /// 连接字符串
    ///</summary>
    [SugarColumn(ColumnName = "ConnectionString")]
    public string? ConnectionString { get; set; }
    
    /// <summary>
    /// 空闲时间(分)
    ///</summary>
    [SugarColumn(ColumnName = "IdleTime")]
    public int? IdleTime { get; set; }
    
    /// <summary>
    /// 启用
    ///</summary>
    [SugarColumn(ColumnName = "Enabled")]
    public bool Enabled { get; set; }
    
    /// <summary>
    /// 说明
    ///</summary>
    [SugarColumn(ColumnName = "Description")]
    public string? Description { get; set; }
    
    /// <summary>
    /// 版本
    ///</summary>
    [SugarColumn(ColumnName = "Version")]
    public long Version { get; set; }
    }
